const {Controller} = require('egg');

class HomeController extends Controller {

    async index() {
        this.ctx.body = 'Hello eggjs';
    }

    async find() {
        const {ctx} = this;
        const pkUserId = "7eaa111a347b48cba8f28d98038c4c17";
        try {
            this.ctx.body = await ctx.service.spUser.find(pkUserId);
        } catch (e) {
            console.log(e);
        }
    }
}

module.exports = HomeController;